import {request} from '@/utils/hsj/service/index'

// 查询发件人邮箱配置列表
export function listMailSenderConfig(query) {
    return request({
        url: "/email/sender/config/list",
        method: "get",
        query,
    });
}

// 新增发件人邮箱配置
export function addMailSenderConfig(data) {
    return request({
        url: "/email/sender/config",
        method: "post",
        data,
    });
}

// 修改发件人邮箱配置
export function updateMailSenderConfig(data) {
    return request({
        url: "/email/sender/config",
        method: "put",
        data,
    });
}

// 删除发件人邮箱配置
export function delMailSenderConfig(mailSenderConfigId) {
    return request({
        url: `/email/sender/config/${mailSenderConfigId}`,
        method: "delete",
    });
}

// 查询发件人邮箱配置详细
export function getMailSenderConfig(mailSenderConfigId) {
    return request({
        url: `/email/sender/config/${mailSenderConfigId}`,
        method: "get",
    });
}
